package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName zn_collect_house
 */
@TableName(value ="zn_collect_house")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZnCollectHouse implements Serializable {
    /**
     * 主键，农家乐收藏表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 农家乐id
     */
    @TableField(value = "house_id")
    private Integer houseId;

    /**
     * 用户id，属于哪个用户
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 收藏状态，1为收藏 0为未收藏
     */
    @TableField(value = "collect_status")
    private Integer collectStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}